package com.cskaoyan.bean.vo.homeIndex;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.bean.vo.homeIndex
 * @date 2020/12/8 14:52
 * @Copyright © 暂时还没有
 * @description
 */
@Data
public class CouponIndex {//coupon表

    private int id;

    private String name;

    private String desc;

    private String tag;

    private BigDecimal discount;

    private BigDecimal min;

    private int days;

    @DateTimeFormat(pattern = "yy-MM-dd")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @DateTimeFormat(pattern = "yy-MM-dd")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
}
